//
//  MFWLoginModel.m
//  MFWSdk
//
//  Created by Song Xiaofeng on 13-7-30.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#import "MFWLoginModel.h"

@implementation MFWLoginModel


- (MFWHttpRequest*)mfwHttpRequestForTask:(MFWHttpTask*)task;
{
    MFWHttpRequest *request = [super mfwHttpRequestForTask:task];
    
    [request.requestParams setValue:[task.argsDic valueForKey:@"username"] forKey:@"x_auth_username"];
    [request.requestParams setValue:[task.argsDic valueForKey:@"password"] forKey:@"x_auth_password"];
    
    request.httpMethod = kRequestHttpMethodPost;
    request.requestUrl = kAPI_Login;
    
    return request;
}
@end
